﻿create proc sp_xoapt
@MaPT int
as
declare @dem as int
select @dem=count(*) from DanhMucPT where MaPT=@MaPT
if(@dem>0)
	begin
	Delete DanhMucPT where MaPT=@MaPT
	select ErrCode=1
	end
else
	begin
	select ErrCode=0
	end